<!--累计销售额-->
<template>
  <CommonCard title="累计销售额" value="￥32,039,165">
    <template #default>
      <div class="compare-wrapper">
        <div class="compare">
          <span>日同比</span>
          <span class="emphasize">7.33%</span>
          <div class="increase-icon"></div>
        </div>
        <div class="compare">
          <span>月同比</span>
          <span class="emphasize">39.33%</span>
          <div class="decrease-icon"></div>
        </div>
      </div>
    </template>
    <template #footer>
      <span>昨日销售额</span>
      <span class="emphasize">￥30,000,000</span>
    </template>
  </CommonCard>
</template>

<script>
import commonCardMixin from '@/mixins/commonCardMixin'

export default {
  name: '',
  mixins: [commonCardMixin]
}
</script>

<style lang="scss" scoped>
span {
  font-size: 12px;
}

.compare-wrapper {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;

  .compare {
    display: flex;
    align-items: center;
    height: 50%;
    font-size: 12px;
    color: #666666;
  }
}

</style>
